package com.ymanage.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单类
 * @Project	yumi
 * @version 1.0
 * @author Alen
 *
 */
public class Order implements Serializable{
	private static final long serialVersionUID = 1L;

	private Integer oid;			//订单id
	
	private Custom custom;			//所属客户
	
	private Date omakeordertime;	//下单时间
	
	private Date oupproducetime;	//上货时间
	
	private Double ofare;			//运费
	
	private String ostatus;			//订单状态	0：未付款	1：未发货	2：已发货	3：已接收	4：订单完成	
									//		       欠款状态： 1,2,3为-（负）
									//		      订单初始态：0，完结态为4
	
	private Double ototalprice;		//总计金额
	
	private String oreceiveaddress;	//收货地址
	
	private Logistics ologistics;	//物流信息
	
	private User user;				//下单人

	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Custom getCustom() {
		return custom;
	}

	public void setCustom(Custom custom) {
		this.custom = custom;
	}

	public Date getOmakeordertime() {
		return omakeordertime;
	}

	public void setOmakeordertime(Date omakeordertime) {
		this.omakeordertime = omakeordertime;
	}

	public Date getOupproducetime() {
		return oupproducetime;
	}

	public void setOupproducetime(Date oupproducetime) {
		this.oupproducetime = oupproducetime;
	}

	public Double getOfare() {
		return ofare;
	}

	public void setOfare(Double ofare) {
		this.ofare = ofare;
	}

	public String getOstatus() {
		return ostatus;
	}

	public void setOstatus(String ostatus) {
		this.ostatus = ostatus;
	}

	public Double getOtotalprice() {
		return ototalprice;
	}

	public void setOtotalprice(Double ototalprice) {
		this.ototalprice = ototalprice;
	}

	public String getOreceiveaddress() {
		return oreceiveaddress;
	}

	public void setOreceiveaddress(String oreceiveaddress) {
		this.oreceiveaddress = oreceiveaddress;
	}

	public Logistics getOlogistics() {
		return ologistics;
	}

	public void setOlogistics(Logistics ologistics) {
		this.ologistics = ologistics;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
